package com.pengshun.modules.api.transport.dto;

import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Fourth;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class CarNumberDto {
    @NotNull(message = "carOwnerId不能为空", groups = {First.class})
    private Long carOwnerId;
    @NotNull(message = "transportTakeCarriageId不能为空", groups = {Fourth.class})
    private Long transportTakeCarriageId;
    @NotNull(message = "transportTakeOrderId不能为空", groups = {Fourth.class, First.class})
    private Long transportTakeOrderId;
    @NotNull(message = "carNumber不能为空", groups = {First.class})
    private String carNumber;
    @NotNull(message = "typeName不能为空", groups = {First.class})
    private String typeName;
    @NotNull(message = "carPhoto不能为空", groups = {First.class})
    private String carPhoto;
    @NotNull(message = "carLoad不能为空", groups = {First.class})
    private String carLoad;
    @NotNull(message = "name不能为空", groups = {First.class})
    private String name;
    @NotNull(message = "数量不能为空", groups = {Fourth.class, First.class})
    private BigDecimal number;
    @NotNull(message = "userId不能为空", groups = {First.class})
    private  Long userId;
    private  Long carDrivingId;
    private  Integer status;
    private  Long allotUserId;
    private List<CarUserDto> carUserDtoList;
}
